package com.ruoyi.business.controller;


import com.ruoyi.business.common.Result;
import com.ruoyi.business.entity.FeatureType;
import com.ruoyi.business.service.FrontFeatureTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Ao
 * @since 2024-01-08
 */
@RestController
@RequestMapping("/business/featureType")
public class FrontFeatureTypeController {

    @Autowired
    private FrontFeatureTypeService featureTypeService;

    @GetMapping("/list")
    public Result<List<FeatureType>> list(){

        return Result.success(featureTypeService.list());
    }
}

